-
Notifications
You must be signed in to change notification settings - Fork 0
2025 - draft #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
2025 - draft #107
Conversation
sim is still broken tests are still broken also I probably broke some functionality somewhere
src/main/java/org/carlmontrobotics/lib199/DummySparkMaxAnswer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModule.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModule.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModuleSim.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModuleSim.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/SparkVelocityPIDController.java
Show resolved
Hide resolved
#107 (comment) Co-authored-by: CoolSpy3 <[email protected]>
#107 (comment) Co-authored-by: CoolSpy3 <[email protected]>
1. duplicatestrategy to fail 2. no more CachedSparkMax 2. motorcontrollerfactory now configures sparks!! 3. motorErrors checks for null faults 4. swap from smartMotion to MAXmotion in mockedsparkmaxpidcontroller.java 5. cleaner builder pid configs in sparkvelocitypidcontroller.java 6. change from deprecated calculate(double, double) to calculateWithVelocities() in swervemodule and don't persist configs
src/main/java/org/carlmontrobotics/lib199/path/DifferentialDriveInterface.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModule.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModule.java
Outdated
Show resolved
Hide resolved
…ed VarType and fixed MotorErrorTest
Co-authored-by: Copilot <[email protected]>
CoolSpy3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright! Just a few more notes on how motors are handled. After this, I think I'll do another dive through the whole PR, look for any final bugs, apply some formatting fixes, and (barring any other major snags) this should be good to go! Home stretch now!
That being said, simulation is still probably in need of a pretty deep rewrite. I don't think that needs to be part of this PR though, I'd rather get polished 2025 code merged to master, and then sim can be tackled separately.
src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModule.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModule.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModule.java
Outdated
Show resolved
Hide resolved
|
@CoolSpy3 Alr I am pretty sure I addresed pretty much all your comments if you could if you check everything that would be awesome :D |
CoolSpy3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! I think all of the major stuff has been addressed. Just two more minor comments. I'll start re-reading everything for anything else that should be fixed before this merges.
src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
Outdated
Show resolved
Hide resolved
…d organized MotorContollerFactory imports
CoolSpy3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, here's the last batch of changes. After this, I might just run through and fix some formatting things, and then this should be good to merge!
| driveConfig.encoder | ||
| .positionConversionFactor(drivePositionFactor) | ||
| .velocityConversionFactor(driveVelocityFactor) | ||
| .quadratureAverageDepth(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we setting this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean this was added before I started working on this PR, so I am also not entirely sure why we are setting. I'll try to look into if there is a reason to set it.
src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModule.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModule.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/MotorControllerFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/SparkVelocityPIDController.java
Outdated
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/SparkVelocityPIDController.java
Outdated
Show resolved
Hide resolved
…id controller use correct config
|
Ok, I basically finished on this batch! Just need to get back to you on this: #107 (comment) I'll prob do it today or tommorow morning. (Also fyi the javadoc doesn't build rn only because ctre javadocs are down) |
CoolSpy3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! Here are a couple of additional notes on the past two commits. Also, this comment still appears unresolved.
src/main/java/org/carlmontrobotics/lib199/SparkVelocityPIDController.java
Show resolved
Hide resolved
src/main/java/org/carlmontrobotics/lib199/SparkVelocityPIDController.java
Show resolved
Hide resolved
| links 'https://api.ctr-electronics.com/phoenix/release/java/' | ||
| links 'https://api.ctr-electronics.com/phoenix6/release/java/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did some digging. It looks like the pheonix docs have moved. [1] You might want to update any other reference docs we have linking to this.
EDIT: Looks like GitHub doesn't like suggestions in unchanged lines. Basically, release should change to stable.
@brettle pls review
also @CoolSpy3 thanks!!